home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11960 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  911 b 

  1. Path: ratty.wolfe.net!usenet
  2. From: jrandom@wolfenet.com (Erik Seaberg)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: works in Borland but not in Microsuck Visual C++
  5. Date: Sat, 16 Mar 1996 12:41:38 GMT
  6. Organization: Wolfe Internet Access, L.L.C.
  7. Message-ID: <314ab559.6203287@news1.wolfe.net>
  8. References: <4ia6h8$jes@news.vanderbilt.edu>
  9. NNTP-Posting-Host: sea-ts1-p37.wolfenet.com
  10. X-Newsreader: Forte Agent .99d/32.182
  11.  
  12. On 14 Mar 1996 22:27:52 GMT, Bennett Haselton
  13. <haseltbt@ctrvax.vanderbilt.edu> wrote:
  14.  
  15. > The following program was written in completely standard C++ and
  16. > should be portable across platforms[....]
  17.  
  18. >    struct person* ansPtr;
  19. >    ansPtr->age = psnPtr->age;
  20.  
  21. ansPtr is uninitialized, and doesn't point at a valid person instance.
  22. Flame Microsoft for dropping 16-bit support, ignoring MS/PC-DOS, and
  23. falling behind the standards Working Group, not for giving you
  24. undefined behavior when you ask for it.
  25.